/*
 * Copyright 2009 Prime Technology.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.primefaces.facestrace.utils;

public interface TraceConstants {
	public final static int PHASE_RESTORE_VIEW = 0;
	public final static int PHASE_APPLY_REQUEST_VALUES = 1;
	public final static int PHASE_PROCESS_VALIDATIONS = 2;
	public final static int PHASE_UPDATE_MODEL = 3;
	public final static int PHASE_INVOKE_APPLICATION = 4;
	public final static int PHASE_RENDER_RESPONSE =5;
	
	public final static String SCOPE_APPLICATION_CLASSPATH = "classpath";
	public final static String SCOPE_APPLICATION_NAME="servlet.application.name";
	public final static String SCOPE_APPLICATION_HOST="servlet.application.host";
	public static final int SCOPE_VALUE_MAX_LENGTH = 100;
	public final static String SCOPE_APPLICATION_CONTEXT="context";
	public final static String SCOPE_APPLICATION_INTERFACE="interface";
	public final static String SCOPE_APPLICATION_WELCOME_FILE_LIST="WelcomeFileList";
	public final static String SCOPE_PARAM_VIEW="com.sun.faces.VIEW";
	
	public final static int SCOPE_APPLICATION = 0;
	public final static int SCOPE_SESSION = 1;
	public final static int SCOPE_REQUEST = 2;
	public final static int SCOPE_PARAM = 3;
	public final static int SCOPE_INITPARAM = 4;
	public final static int SCOPE_COOKIES =5;
	public final static int SCOPE_HEADER =6;
	
	
	public final static String FACES_TRACE_HEADER_NAME="FACES TRACE";
	public final static String Application_Scope_Name="Application Scope";
	public final static String Cookie_Name="Cookie";
	public final static String Session_Scope_Name="Session Scope";
	public final static String Request_Scope_Name="Request Scope";
	public final static String Param_Name="Param";
	public final static String InitParam_Name="Init Param";
	public final static String Header_Name="Header";
	
	public final static String PHASE_RESTORE_VIEW_NAME = "Restore View";
	public final static String PHASE_APPLY_REQUEST_VALUES_NAME = "Apply Request";
	public final static String PHASE_PROCESS_VALIDATIONS_NAME = "Validations";
	public final static String PHASE_UPDATE_MODEL_NAME = "Update Model";
	public final static String PHASE_INVOKE_APPLICATION_NAME = "Application";
	public final static String PHASE_RENDER_RESPONSE_NAME ="Response";
	
	public final static String RESOURCE_VIEW_ID = "traceResource";
	
	public final static String VERSION = "0.8.1";
}
